package com.dinpay.plugin.activity;

import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.ColorDrawable;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.PopupWindow;
import com.dinpay.plugin.a.a;
import com.dinpay.plugin.b.j;
import com.dinpay.plugin.d.c;
import com.dinpay.plugin.widget.CleanEditText;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

final class n
  implements View.OnClickListener
{
  Intent a = null;

  n(DinpayPayActivity paramDinpayPayActivity)
  {
  }

  public final void onClick(View paramView)
  {
    switch (paramView.getId())
    {
    default:
      return;
    case 200001:
      this.b.finish();
      return;
    case 100010:
      SharedPreferences.Editor localEditor3 = this.b.getSharedPreferences("bankList", 0).edit();
      localEditor3.putString("isSelect", "1");
      localEditor3.commit();
      if (!this.b.a())
      {
        this.b.d("无法连接网络,请检查网络配置");
        return;
      }
      DinpayPayActivity.b(this.b).show();
    case 300001:
    case 100003:
    case 100004:
    case 4000:
    }
    while (true)
    {
      DinpayPayActivity.g(this.b);
      return;
      SharedPreferences.Editor localEditor2 = this.b.getSharedPreferences("bankList", 0).edit();
      localEditor2.putString("isSelect", "0");
      localEditor2.commit();
      DinpayPayActivity.a(this.b, Boolean.valueOf(true));
      if (!this.b.a())
      {
        this.b.d("无法连接网络,请检查网络配置");
        return;
      }
      if (DinpayPayActivity.h(this.b) == true)
      {
        if ((DinpayPayActivity.i(this.b) != null) && (!DinpayPayActivity.i(this.b).isEmpty()) && (DinpayPayActivity.i(this.b).size() > 1))
          DinpayPayActivity.j(this.b).setVisibility(0);
        DinpayPayActivity.a(this.b, new PopupWindow(DinpayPayActivity.k(this.b), -1, -2));
        DinpayPayActivity.l(this.b).setFocusable(true);
        DinpayPayActivity.l(this.b).setOutsideTouchable(true);
        DinpayPayActivity.l(this.b).setBackgroundDrawable(new BitmapDrawable());
        DinpayPayActivity.l(this.b).setBackgroundDrawable(new ColorDrawable(0));
        DinpayPayActivity.l(this.b).showAtLocation(DinpayPayActivity.m(this.b), 80, 0, 0);
        if ((DinpayPayActivity.i(this.b) == null) || (DinpayPayActivity.i(this.b).isEmpty()))
          break;
        ArrayList localArrayList = new ArrayList();
        Iterator localIterator = DinpayPayActivity.i(this.b).iterator();
        while (localIterator.hasNext())
        {
          j localj = (j)localIterator.next();
          localArrayList.add(localj.b() + localj.d() + "     |    " + localj.c());
        }
        a locala = new a(DinpayPayActivity.i(this.b), this.b);
        DinpayPayActivity.n(this.b).setAdapter(locala);
        DinpayPayActivity.n(this.b).setOnItemClickListener(DinpayPayActivity.o(this.b));
        return;
      }
      DinpayPayActivity.b(this.b).show();
      continue;
      if (!this.b.a())
      {
        this.b.d("无法连接网络,请检查网络配置");
        return;
      }
      if (DinpayPayActivity.h(this.b) == true)
      {
        DinpayPayActivity.b(this.b).show();
        if ((DinpayPayActivity.p(this.b).booleanValue() == true) && (!DinpayPayActivity.q(this.b).booleanValue()) && (!DinpayPayActivity.r(this.b).booleanValue()))
        {
          DinpayPayActivity.s(this.b);
          return;
        }
        DinpayPayActivity.t(this.b);
        return;
      }
      if (!DinpayPayActivity.u(this.b))
        break;
      DinpayPayActivity.b(this.b).show();
      c.n = DinpayPayActivity.v(this.b).getText().toString();
      if ((DinpayPayActivity.p(this.b).booleanValue() == true) && (c.m.equals(c.n)))
      {
        DinpayPayActivity.s(this.b);
        return;
      }
      DinpayPayActivity.t(this.b);
      DinpayPayActivity.w(this.b).start();
      return;
      if (!this.b.a())
      {
        this.b.d("无法连接网络,请检查网络配置");
        return;
      }
      this.a = new Intent(this.b, AgreeMentActivity.class);
      this.b.startActivity(this.a);
      return;
      DinpayPayActivity.x(this.b);
      SharedPreferences.Editor localEditor1 = this.b.getSharedPreferences("bankList", 0).edit();
      localEditor1.putString("isAddCard", "1");
      localEditor1.commit();
      if (DinpayPayActivity.l(this.b) != null)
        DinpayPayActivity.l(this.b).dismiss();
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.dinpay.plugin.activity.n
 * JD-Core Version:    0.6.2
 */